package com.lichuandi.controller;

import com.lichuandi.sender.DirectSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DirectController {
    @Autowired
    private DirectSender directSender;

    /**
     * 调用directSender生产者发送消息的方法
     */
    @GetMapping("directTest")
    public void directTest() {
        directSender.sendDirectQueue();
    }
}
